app.service('Blog', [
  '$resource', function($resource) {
    return $resource('/main/blog/:id');
  }
]);

app.service('Activity', [
  '$resource', '$http', '$q', function($resource, $http, $q) {
    var Activity;
    Activity = $resource('/main/activity/:id');
    Activity.getSignList = function(id) {
      var delay;
      delay = $q.defer();
      $http.get('/main/activity/' + id + '/sign').success(function(data) {
        return delay.resolve(data);
      }).error(function(err) {
        return delay.reject(err);
      });
      return delay.promise;
    };
    return Activity;
  }
]);

app.service('Setting', [
  '$resource', function($resource) {
    return $resource('/main/setting');
  }
]);
